function heavyCompute(n){
	var count =0,i,j;
	for(i = n ;i >0; i--){
		count += 1;
	}
}
var t = new Date();

setTimeout(function () {
    console.log(new Date() - t);
}, 1000);
heavyCompute(50000);
